package explorandum.g4;

import java.awt.Color;
import java.awt.Point;
import java.util.Random;

import explorandum.Logger;
import explorandum.Move;
import explorandum.Player;

public class TestPlayer2 implements Player {

	private Color color = Color.YELLOW;
	private String name = "Pioneer";
	
	Logger log;
	Random rand;
	
	int rounds, explorerID, range;

	public Move move(Point currentLocation, Point[] offsets, Boolean[] hasExplorer, Integer[][] otherExplorers, Integer[] terrain, int time) throws Exception{
		// TODO Auto-generated method stub
		int direction = Prompt.ask();
		if(direction<8 && direction>0)
			return(new Move(direction));

		return null;
	}

						


	public void register(int _explorerID, int _rounds, int explorers, int _range, Logger _log, Random _rand){
	// TODO Auto-generated method stub
		log = _log;
		rand = _rand;
		rounds = _rounds;
		explorerID = _explorerID;
		range = _range;
	}
	
	public String name() throws Exception {
		// TODO Auto-generated method stub
		return name;
	}

	public Color color() throws Exception {
		// TODO Auto-generated method stub
		return color;
	}
}
